package com.qf.zuoye0620.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qf.zuoye0620.entity.User;
import com.qf.zuoye0620.mapper.UserMapper;
import com.qf.zuoye0620.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author UNIQ7xi
 * @Date 2023/6/20 19:25
 * @Version v1.8
 **/
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {
    @Autowired
    UserMapper userMapper;

    @Override
    public User getUserByUsername(String username) {
        return userMapper.findByUsername(username);
    }
}
